package com.eva.framework.captcha;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Resource;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Schema(description = "应用配置")
@Configuration
@ConfigurationProperties(prefix = "app.captcha", ignoreInvalidFields = true)
public class CaptchaProperties {

    @Resource
    @Schema(description = "图片验证码")
    private ImageCaptchaConfig image;

    @Data
    @Configuration
    @Schema(description = "图片验证码配置")
    public static class ImageCaptchaConfig {

        @Schema(description = "验证码超时时间")
        private Integer expire;
    }
}
